package cn.sdqingyun.smartpark.module.pay.api.refund;

import cn.sdqingyun.smartpark.framework.common.pojo.CommonResult;
import cn.sdqingyun.smartpark.module.pay.api.refund.dto.PayRefundCreateReqDTO;
import cn.sdqingyun.smartpark.module.pay.api.refund.dto.PayRefundRespDTO;
import cn.sdqingyun.smartpark.module.pay.enums.ApiConstants;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.text.ParseException;

@FeignClient(name = ApiConstants.NAME)
@Tag(name = "RPC 服务 - PAY流程实例")
public interface PayRefundApi {

    String PREFIX = ApiConstants.PREFIX + "/待修改-leave";

    @PostMapping(PREFIX + "/")
    @Operation(summary = "")
    @Parameter(name = "id", description = "合同ID", required = true, example = "1")
    CommonResult<Long> createRefund(PayRefundCreateReqDTO createReqDTO);

    CommonResult<PayRefundRespDTO> getRefund(Long payRefundId);
}
